let Utils = require("../../framework/js/utils");

module.exports = {
    template: `
        <div class="anu-subpage" style="width: 100%;">          
            <button class="btn btn-info" type="button" @click="openNotify">打开一条notification</button>
              
            <div class="row">
                <div class="col-xs-12">
                    <h5>文档</h5>
                    <hr better/>
                </div>
            </div>               
            <div><a href="http://kamranahmed.info/toast" class="aui-color-info" target="_blank">具体请参考jquery toast插件官网</a></div>              
        </div>
    `,
    data() {
        var ret = {};
        return ret;
    },
    mounted() {
        var self = this;
        rootcontroller.getPage(self).attachChildComponentReady();
    },
    methods: {
        service() {
        },
        openNotify() {
            $.toast({
                heading: '消息提示',
                text: "保存成功",
                icon: "success"
            });
        },
        onError(e) {
            console.log('-------------------');
            console.log(e);
            console.log('-------------------');
        }
    }
};